﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problema2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("1.Memory Database\n2.Disk Database");
            int aux = Int32.Parse(Console.ReadLine());
            if (aux == 1)
            {
                FactoryMemoryDatabase factory = new FactoryMemoryDatabase();
                MemoryDatabase db = factory.CreateDatabase();
                Customer c = new Customer();
                db.storeCustomer(c);
                db.afisare();
                db.sterge();
                Console.WriteLine("au mai ramas:");
                db.afisare();
            }
            else
            {
                FactoryDiskDatabase factory = new FactoryDiskDatabase();
                DiskDatabase db = factory.CreateDatabase();
                Customer c = new Customer();
                db.storeCustomer(c);
                db.afisare();
                db.sterge();
                Console.WriteLine("au mai ramas:");
                db.afisare();
            }
            Console.ReadLine();
        }
    }
}
